package com.zhouyy.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;


/**
 * <p> 响应码枚举 </p>
 *
 * @author zhouyy
 * @description
 * @date 2024/03/25 18:26
 */
@Getter
@AllArgsConstructor
public enum ApiResultCodeEnum {

    SUCCESS(200, "SUCCESS"),
    FAILURE(400, "FAILURE"),
    PARAM_VALID_ERROR(400, "参数校验失败"),
    NOT_FOUND(404, "接口不存在"),
    INTERNAL_SERVER_ERROR(500, "服务器内部错误"),
    ;

    private final int code;
    private final String desc;
}
